#include "localMovieListInfoMessage.h"
#include "jsonUtils.h"

LocalMovieListInfoMessage::LocalMovieListInfoMessage(MtpProtocol* packet) : MtpMessage(packet)
{

}

LocalMovieListInfoMessage::LocalMovieListInfoMessage(const int& total, const int& size, const int& current, const int& pages, const std::list<Movie*>& list, const MtpMessage* src)
	: MtpMessage(new MtpProtocol(L"localMovieListInfo", (const MtpProtocol*)src->getPacket())),res(total,size,current,pages,list)
{

}

void LocalMovieListInfoMessage::decodeBody()
{

}

void LocalMovieListInfoMessage::encodeBody()
{
	jsonContent = JsonUtils::jsonStr(res.jsonSerialize());
	MtpMessage::encodeBody();
}
